﻿#ifndef TLVCODEWIDGET_H
#define TLVCODEWIDGET_H

#include <PageWidget/PageWidget.h>

#include "../TlvCodePanel/TlvCodePanel.h"
#include "stores/TlvProject/TlvDataModelTypeDef.h"


class TlvCodeWidget : public PageWidget
{
    Q_OBJECT

public:
    explicit TlvCodeWidget(QWidget *parent = nullptr);
    ~TlvCodeWidget();

    TlvCodePanel* addPage(const QString& pageName);

    QList<CodePageModel> toCodesModel();

protected:
    void initByDataStore();
    TlvCodePanel* panelAt(int pageID);
    void onAddClicked() override;
};

#endif // TLVCODEWIDGET_H
